<div class="content fadeInRight enterdatasetting">
	<form class="form-horizontal" name="entryForm" ng-submit="vm.submitForm(entryForm.$valid)" novalidate>
		<div class="ibox">
            <div class="ibox-title">
                <h5>资料设置</h5>
            </div>

			<div class="ibox-content">

				<div class="row">
					<div class="col-lg-offset-2 col-lg-6 col-md-8">
						<div style="min-width: 300px;">
							<div>
								<h2><small>字段名称</small></h2>
								<span class="float-right">
									<h3><small><strong>
										不显示&nbsp;&nbsp;&nbsp;显示&nbsp;&nbsp;&nbsp;显示且必须
									</strong></small></h3>
								</span>
							</div>
							<div  class="layer block">
								<ul id="foo" class="block__list block__list_words sortable-list connectList agile-list">
									<li ng-repeat="item in vm.entryDataList" class="success-element">
							    	<div class="item" data-seq={{item.seq}}>
								        <h3><strong>{{item.field_title}}</strong></h3>
								        <h3><small><strong>
											{{item.desc}}
										</strong></small></h3>
								       	<span class="float-right">
                                        	<a class="btn btn-xs btn-white" ng-if="item.is_system_field != 'yes'" ng-click="vm.editItem(item.id, item.field_title, item.desc, item.type, item.display, item.list_values)">	编辑
                                        	</a>
                                        	<a class="btn btn-xs btn-white" ng-if="item.is_system_field != 'yes'" ng-click="vm.delItem(item.id)">	删除
                                        	</a>
                                        	&nbsp;&nbsp;
					                        <input icheck type="radio" name="{{item.field_name}}" value="hidden" ng-model="item.optionalflag">
					                        &nbsp;&nbsp;&nbsp;&nbsp;
					                        <input icheck type="radio" name="{{item.field_name}}" value="show" ng-model="item.optionalflag" >
					                        &nbsp;&nbsp;&nbsp;&nbsp;
					                        <input icheck type="radio" name="{{item.field_name}}" value="require" ng-model="item.optionalflag" >
					                        &nbsp;&nbsp;
				                        </span> 
				                    </div>        
							    </li>

								</ul>
							</div>
						</div>
					</div>
				</div>

                <div class="form-group">
                    <div class="col-lg-offset-2 col-lg-6 col-md-8" style="text-align: right;">
                        <button type="button" class="btn btn-sm btn-primary" ng-click="vm.add()" ng-disabled="hide">
                        	<i class="fa fa-plus"></i>新增自定义字段
                        </button>
                        <button type="submit" class="btn btn-sm btn-primary" ng-disabled="hide">
                        	<i class="fa fa-save"></i>保存
                        </button>
                    </div>
                </div>

		    </div>
        </div>
    </form>
</div>
<script>
	(function (){
		window.x = new Sortable(foo, {
			group: "words",
			store: {
				get: function (sortable) {
					return [];
				},
				set: function (sortable) {
					var order = sortable.toArray();
				}
			}
		});
	})();
</script>